package com.jk.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jk.dao.MechanismDao;
import com.jk.pojo.MechanismEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName MechanismService
 * @Descripttion TODO
 * @Author DELL
 * @Date 2022/10/16 20:30
 * @Version 0.001
 */
@Service
public class MechanismService {

    @Autowired
    private MechanismDao mechanismDao;

    /**
     * @Author: binzi
     * @Description:查询状态
     * @Date: 2022/10/16 20:31
     * @Return: java.util.List<com.jk.pojo.MechanismEntity>
     **/
    public List<MechanismEntity> findMechanism() {
        QueryWrapper<MechanismEntity> queryWrapper = new QueryWrapper<>();
        List<MechanismEntity> mechanismEntities = mechanismDao.selectList(queryWrapper);
        return mechanismEntities;
    }
}
